<extend name="common:commonNewerTemplate" />
<block name="main_content">
<div id="content">
	<div id="content-header">
		<div id="breadcrumb">
			<a class="tip-bottom" href="index.html"
				data-original-title="Go to Home"><i class="icon-home"></i> 首页</a> <a
				href="#">经销商管理</a> <a class="current" href="#">经销商详情</a>
		</div>

	</div>
	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span6">
				<div class="widget-box">
					<div class="widget-title">
						<span class="icon"> <i class="icon-info-sign"></i>
						</span>
						<h5>经销商详情</h5>
					</div>
					<div class="widget-content nopadding">
						<form novalidate="novalidate" id="basic_validate"
							name="basic_validate" action="#" method="post"
							class="form-horizontal">
							<div class="control-group">
								<label class="control-label">经销商名称：</label><label
									style="text-align: left;" class="control-label">
									<span id="order_id">{$dealer_info_en.dealer_name}</span></label>
							</div>
							<div class="control-group">
								<label class="control-label">经销商类型：</label><label
									style="text-align: left;" class="control-label">
									<span id="order_id">{$dealer_info_en.dealer_type_text}</span></label>
							</div>
							<div class="control-group">
								<label class="control-label">金蝶唯一编码：</label><label
									style="text-align: left;" class="control-label">
									<span id="order_id">{$dealer_info_en.k3_code}</span></label>
							</div>
							<div class="control-group">
								<label class="control-label">经销商的默认折扣返点：</label><label
									style="text-align: left;" class="control-label">
									<span id="order_id">{$dealer_info_en.discount_rate}</span></label>
							</div>
							<div class="control-group">
								<label class="control-label">业务对接人：</label><label
									style="text-align: left;" class="control-label">
									<span id="order_id">{$dealer_info_en.business_leader}</span></label>
							</div>
							<div class="control-group">
								<label class="control-label">业务对接人电话：</label><label
									style="text-align: left;" class="control-label">
									<span id="order_id">{$dealer_info_en.business_leader_cellphone}</span></label>
							</div>
							<div class="control-group">
								<label class="control-label">大区：</label><label
									style="text-align: left;" class="control-label">
									<span id="order_id">{$dealer_info_en.area_name}</span></label>
							</div>
							<div class="control-group">
								<label class="control-label">操作模式：</label><label
									style="text-align: left;" class="control-label">
									<span id="order_id">{$dealer_info_en.operation_pattern}</span></label>
							</div>
							<div class="control-group">
								<label class="control-label">注册资金：</label><label
									style="text-align: left;" class="control-label">
									<span id="order_id">{$dealer_info_en.registered_capital}</span></label>
							</div>
							<div class="control-group">
								<label class="control-label">余额：</label><label
									style="text-align: left;" class="control-label">
									<span id="order_id">{$dealer_info_en.amount}</span></label>
							</div>
							<div class="control-group">
								<label class="control-label">后返余额：</label><label
									style="text-align: left;" class="control-label">
									<span id="order_id">{$dealer_info_en.cashback_amount}</span></label>
							</div>
							<div class="control-group">
								<label class="control-label">法人代表：</label><label
									style="text-align: left;" class="control-label">
									<span id="order_id">{$dealer_info_en.leal_person}</span></label>
							</div>
							<div class="control-group">
								<label class="control-label">开户行名称：</label><label
									style="text-align: left;" class="control-label">
									<span id="order_id">{$dealer_info_en.bank_name}</span></label>
							</div>
							<div class="control-group">
								<label class="control-label">开户行账号：</label><label
									style="text-align: left;" class="control-label">
									<span id="order_id">{$dealer_info_en.bank_no}</span></label>
							</div>
							<div class="control-group">
								<label class="control-label">税号：</label><label
									style="text-align: left;" class="control-label">
									<span id="order_id">{$dealer_info_en.tax_no}</span></label>
							</div>
							<div class="control-group">
								<label class="control-label">身份证号码：</label><label
									style="text-align: left;" class="control-label">
									<span id="order_id">{$dealer_info_en.dealer_id_card_no}</span></label>
							</div>
							
							<div class="control-group">
								<label class="control-label">身份证图片正面：</label>
								<div class="controls">
								<a target="_blank" href="{$dealer_info_en.id_1}"> <img src="{$dealer_info_en.id_1}" alt="身份证正面面图片" width="220px;"></img></a>
									
								</div>
							</div>
							<div class="control-group">
								<label class="control-label">身份证图片反面：</label>
								<div class="controls">
								<a target="_blank" href="{$dealer_info_en.id_2}"> <img src="{$dealer_info_en.id_2}" alt="身份证反面图片" width="220px;"></img></a>
									
								</div>
							</div>
							<div class="control-group">
								<label class="control-label">营业执照照片：</label>
								<div class="controls">
								<a target="_blank" href="{$dealer_info_en.id_3}"> <img src="{$dealer_info_en.id_3}" alt="营业执照照片" width="220px;"></img></a>
									
								</div>
							</div>
							
							 <div class="control-group">
								<label class="control-label">组织机构图片:</label>
								<div class="controls">
									
									<a target="_blank" href="{$dealer_info_en.id_4}"> <img src="{$dealer_info_en.id_4}" alt="组织机构照片" width="220px;"></img></a>
								</div>
								
							 </div>
							 
							 
							 <div class="control-group">
								<label class="control-label">税务登记图片:</label>
								<div class="controls">
									
									<a target="_blank" href="{$dealer_info_en.id_5}"> <img src="{$dealer_info_en.id_5}" alt="税务登记照片" width="220px;"></img></a>
								</div>
								
							 </div>
							  <div class="control-group">
								<label class="control-label">一般纳税人图片:</label>
								<div class="controls">
									
									<a target="_blank" href="{$dealer_info_en.id_6}"> <img src="{$dealer_info_en.id_6}" alt="一般纳税人照片" width="220px;"></img></a>
								</div>
								
							 </div>
							 
							 <div class="control-group">
								<label class="control-label">开户许可证图片:</label>
								<div class="controls">
									
									<a target="_blank" href="{$dealer_info_en.id_7}"> <img src="{$dealer_info_en.id_7}" alt="开户许可证照片" width="220px;"></img></a>
								</div>
								
							 </div>
							 
							<div class="control-group">
								<label class="control-label">财务联系人：</label><label
									style="text-align: left;" class="control-label">
									<span id="order_id">{$dealer_info_en.finance_leader}</span></label>
							</div>
							<div class="control-group">
								<label class="control-label">财务联系人电话：</label><label
									style="text-align: left;" class="control-label">
									<span id="order_id">{$dealer_info_en.finance_leader_cellphone}</span></label>
							</div>
							<div class="control-group">
								<label class="control-label">发票寄送地址：</label><label
									style="text-align: left;" class="control-label">
									<span id="order_id">{$dealer_info_en.invoice_address}</span></label>
							</div>
							<div class="control-group">
								<label class="control-label">税务注册地址：</label><label
									style="text-align: left;" class="control-label">
									<span id="order_id">{$dealer_info_en.registered_address}</span></label>
							</div>
							<div class="control-group">
								<label class="control-label">税务注册电话：</label><label
									style="text-align: left;" class="control-label">
									<span id="order_id">{$dealer_info_en.registered_tel}</span></label>
							</div>
							<div class="control-group">
								<label class="control-label">签约状态：</label><label
									style="text-align: left;" class="control-label">
									<span id="order_id">{$dealer_info_en.sign_status_text}</span></label>
							</div>
							<div class="control-group">
								<label class="control-label">状态：</label><label
									style="text-align: left;" class="control-label">
									<span id="order_id">{$dealer_info_en.status_text}</span></label>
							</div>
							<if condition="$dealer_info_en.status eq 1">
							<div class="control-group">
								<label class="control-label">审核人意见：</label>
									<div class="controls">
									<input type="text" id="remark" name="remark" ></input><span style="color:red;">*</span>
									</div>
							</div>
							</if>
							<if condition="$dealer_info_en.status eq 3">
							<div class="control-group">
								<label class="control-label">审核人意见：</label><label
									style="text-align: left;" class="control-label">
									<span id="order_id">{$dealer_info_en.remark}</span></label>
							</div>
							</if>
							<div class="form-actions">
							<if condition="$dealer_info_en.status eq 1">
							<a href="/dealer/dealerinfoAuditPass?dealer_id={$dealer_info_en.dealer_id}"  style="background:red" class="btn btn-success" >审批通过</a>		
							<a id="auditfail"  onclick="submitFail('{$dealer_info_en.dealer_id}')" style="background:red" class="btn btn-success" >审批拒绝</a>												
							</if>
							
							</div>
						</form>
					</div>
				</div>
			</div>


			<div class="span6">
				<div class="widget-box">
					<div class="widget-title">
						<span class="icon"> <i class="icon-th"></i>
						</span>
						<h5>
							经销商:<span style="color: red">{$dealer_info_en.dealer_name}</span> 收货地址明细
						</h5>
					</div>
					<div class="widget-content nopadding">
						<table class="table table-bordered table-striped"
							id="search_result" >
							<thead>
								<tr>
									<th>收货人姓名</th>
									<th>收货人手机</th>
									<th>收货人电话</th>
									<th>省</th>
                                    <th>市</th>
                                    <th>区</th>
                                    <th>邮编</th>
                                    <th>地址</th>
								</tr>
							</thead>
							<tbody>
								<volist id="user_addr" name="user_addr_en">
								<tr class="odd gradeX">
									<td>{$user_addr.consignee_name}</td>
									<td>{$user_addr.consignee_cellphone}</td>
									<td>{$user_addr.consignee_tel}</td>
									<td>{$user_addr.consignee_province}</td>
									<td>{$user_addr.consignee_city}</td>
									<td>{$user_addr.consignee_district}</td>
									<td>{$user_addr.consignee_zip}</td>
									<td>{$user_addr.consignee_address}</td>
								</tr>
								</volist>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
</block>
<block name="js_content">
 <script>
function submitFail(dealer_id){
	
	var remark = $('#remark').val();
	if(remark==''){
		alert("请输入审批失败原因!");
		return;
	}else{
	href="/dealer/dealerinfoAuditFail?dealer_id="+dealer_id+"&remark="+encodeURIComponent(remark);	
	
	$('#auditfail').attr('href',href);	
		
	}
	
	
	
	
	
	
}
 
 
 
</script> </block>